
Planes Toggle Me
Overview
Planes Toggle Me is a utility command that toggles the visibility of coordinate system planes in the current Inventor document. This command is useful for quickly switching between showing and hiding reference planes, helping you focus on geometry or access reference features as needed. In addition to toggling the standard coordinate planes, Planes Toggle Me also sets a document parameter named ShowPlanes, which can be used in custom rules to control the visibility of additional work planes within the component.
If your component includes a rule that responds to the ShowPlanes parameter, running Planes Toggle Me will also toggle the visibility of any custom-named work planes according to your rule logic. This allows for advanced automation and customization, ensuring that only the planes you want visible are shown.
How It Works
- Toggles the visibility of the standard coordinate system planes for the current document.
- Sets the ShowPlanes document parameter to True or False depending on the current state.
- If a rule is set up to respond to ShowPlanes, custom work planes will also be toggled accordingly.
Usage Instructions
- Open the document in which you want to toggle coordinate system planes.
- Activate the Planes Toggle Me command from the toolbar or menu.
- The command will toggle the visibility of the standard coordinate system planes for the current document.
- If you have custom rules set up for the ShowPlanes parameter, those work planes will also be toggled.
- Review your document to confirm that the desired reference geometry is visible or hidden as needed.
Trouble Shooting
- If some planes do not toggle as expected, check for custom rules in your component that may override the default behavior.
- Ensure the ShowPlanes parameter exists if you want to use it for additional logic.
- Review your component rules for any logic that may affect plane visibility.
Examples
- Toggle all planes in a document: Run the command to switch between showing and hiding all coordinate system planes.
- Toggle custom work planes: Add a rule to your component to toggle visibility for specific named planes using the ShowPlanes parameter.
- Example rule to toggle work plane visibility. Each time you run Planes Toggle Me, these work planes along with the standard coordinate system planes will be toggled according to your rules.
- ThisDoc.Document.ComponentDefinition.WorkPlanes(1).Visible = ShowPlanes
- ThisDoc.Document.ComponentDefinition.WorkPlanes("Top of Fitting").Visible = ShowPlanes
- ThisDoc.Document.ComponentDefinition.WorkPlanes("Bottom of Fitting").Visible = ShowPlanes
- ThisDoc.Document.ComponentDefinition.WorkPlanes("Middle of Fitting").Visible = ShowPlanes